home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Softshoe / Lisa's Mac Parts / Cursor / CursorObject.h < prev    next >
Text File  |  2000-06-23  |  653b  |  35 lines

  1. // CursorObject.h
  2.  
  3. #ifndef CursorObject_h
  4. #define CursorObject_h
  5.  
  6. #ifndef ResourceID_h
  7. #include "ResourceID.h"
  8. #endif
  9.  
  10. #include <QuickDraw.h>
  11.  
  12. class CursorObject
  13.   {
  14.     private:
  15.         const Cursor *const * cursor;
  16.         
  17.         // not implemented:
  18.             CursorObject( const CursorObject& );
  19.             void operator=( const CursorObject& );
  20.     
  21.     public:
  22.         CursorObject( ResourceID );
  23.         CursorObject( const Cursor *const * );
  24.         
  25.         void Show() const            { SetCursor( *cursor ); }
  26.         
  27.         static const CursorObject& Arrow();
  28.         static const CursorObject& IBeam();
  29.         static const CursorObject& Cross();
  30.         static const CursorObject& Plus();
  31.         static const CursorObject& Watch();
  32.   };
  33.  
  34. #endif
  35.